

package cn.tedu.bonfire.common.pojo.po;


import java.time.LocalDateTime;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Document(
        indexName = "content_tag"
)
@Data
public class TagAdminSearchPO {
    @Id
    private Long id;
    @Field(
            type = FieldType.Text,
            analyzer = "ik_smart"
    )
    private String tagName;
    private Integer clickTimes;
    private Integer auditStatus;
    private Long tagId;
    @TableField(
            fill = FieldFill.INSERT
    )
    private LocalDateTime gmtCreate;
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    private LocalDateTime gmtModified;

}
